projects
/
ostree.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bb4ea4
)
core: Use gs_stream_fstat()
author
Colin Walters
<walters@verbum.org>
Thu, 15 Aug 2013 18:21:26 +0000
(14:21 -0400)
committer
Colin Walters
<walters@verbum.org>
Thu, 15 Aug 2013 18:21:26 +0000
(14:21 -0400)
Just a cleanup.
src/libostree/ostree-core.c
patch
|
blob
|
history
diff --git
a/src/libostree/ostree-core.c
b/src/libostree/ostree-core.c
index 517675382efedb9a577659338ee393f78e827cda..59779b1c9c3810c61dd04aa840b8fb4e3fa45c15 100644
(file)
--- a/
src/libostree/ostree-core.c
+++ b/
src/libostree/ostree-core.c
@@
-714,11
+714,8
@@
ostree_content_file_parse (gboolean compressed,
if (!file_input)
goto out;
- if (fstat (g_file_descriptor_based_get_fd ((GFileDescriptorBased*)file_input), &stbuf) < 0)
- {
- ot_util_set_error_from_errno (error, errno);
- goto out;
- }
+ if (!gs_stream_fstat ((GFileDescriptorBased*)file_input, &stbuf, cancellable, error))
+ goto out;
length = stbuf.st_size;
}